import Vue from 'vue'
import VueRouter from 'vue-router'

const home = () => import("views/home/home.vue")
const profile = () => import("views/profile/profile.vue")
const shopcard = () => import("views/shopcard/shopcard.vue")
const category = () => import("views/category/category.vue")

Vue.use(VueRouter);

const routes = [
  {
    path: "",
    redirect: "/home"
  },
  {
    path:"/home",
    component: home
  },
  {
    path: "/profile",
    component: profile
  },
  {
    path: "/shopcard",
    component: shopcard
  },
  {
    path: "/category",
    component: category
  }
];

const router = new VueRouter({
  routes,
  mode: 'history'
});

export default router;
